import { http } from '@/utils/http/axios';

export function listColor(data = {}) {
  return http.request({
    url: '/admin/base/color/list',
    method: 'get',
    data,
  });
}

export function pageColor(data = {}) {
  return http.request({
    url: '/admin/base/color/page',
    method: 'post',
    data,
  });
}

export function addColor(data = {}) {
  return http.request({
    url: '/admin/base/color/add',
    method: 'post',
    data,
  });
}

export function updateColor(data = {}) {
  return http.request({
    url: '/admin/base/color/update',
    method: 'post',
    data,
  });
}

export function delColor(data = {}) {
  return http.request({
    url: '/admin/base/color/delete',
    method: 'post',
    data,
  });
}
